﻿<!DOCTYPE html>
<html>
 <head> 
  <meta charset="UTF-8" /> 
  <title>编辑公众号</title> 
  <link rel="stylesheet" href="../../assets/js/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="../../assets/css/global.css" media="all">
  <link rel="stylesheet" href="../../assets/js/font-awesome/css/font-awesome.min.css">
 </head> 
 <body> 
     <div class="admin-main" dataload="/api/wechat/wechataccount/wechat_account_get?wid={wid}" onfinishcallback="onDataLoadedCallback">
         <form class="layui-form" action="/api/wechat/wechataccount/wechat_account_save">
             <input type="hidden" name="wid" bindattr="wid" />

             <div class="layui-form-item">
                 <label class="layui-form-label">公众号名称</label>
                 <div class="layui-input-block">
                     <input type="text" class="layui-input" bindattr="wname" name="wname" lay-verify="required" placeholder="请输入公众号名称" />
                 </div>
             </div>
             <div class="layui-form-item">
                 <label class="layui-form-label">appid</label>
                 <div class="layui-input-block">
                     <input type="text" class="layui-input" bindattr="appid" name="appid" lay-verify="required" placeholder="请输入appid" />
                 </div>
             </div>

             <div class="layui-form-item">
                 <label class="layui-form-label">appsecrect</label>
                 <div class="layui-input-block">
                     <input type="text" class="layui-input" bindattr="appsecrect" name="appsecrect" lay-verify="required" placeholder="请输入appsecrect" />
                 </div>
             </div>

             <div class="layui-form-item">
                 <label class="layui-form-label">活动状态</label>

                 <div class="layui-input-block">
                     <select bindattr="promotestatus" id="promotestatus" name="promotestatus" lay-verify="required">
                         <option value="1">启用</option>
                         <option value="-1">停用</option>
                     </select>

                 </div>
             </div>

             <div class="layui-form-item">
                 <label class="layui-form-label">状态</label>
                 <div class="layui-input-block">
                     <select bindattr="status" id="status" name="status" lay-verify="required">
                         <option value="1">启用</option>
                         <option value="-1">停用</option>
                     </select>
                 </div>
             </div>


             <div class="layui-form-item">
                 <label class="layui-form-label">电子书提醒</label>

                 <div class="layui-input-block">
                     <textarea class="layui-textarea" bindattr="accountcontent" id="accountcontent" name="accountcontent"></textarea>

                 </div>
             </div>


             <div class="layui-form-item">
                 <div class="layui-input-block">
                     <input type="button" class="layui-btn J_ajaxSubmit" value="保存" />
                     <input type="reset" class="layui-btn layui-btn-primary" value="重置" />
                 </div>
             </div>
         </form>
     </div>  
 </body>
 
<script type="text/javascript" src="../../assets/js/layui/layui.js"></script>
<script>
	layui.cache.page = 'wechataccount';
	layui.config({
		version : "1.0.0",
		base : 'js/'
	}).use('wechataccount');
	
	function onDataLoadedCallback(data){
	    layui.form.render('select');
         
	}
</script>
</html>